package cn.icatw.gulimall.ware.service;

import cn.icatw.gulimall.ware.vo.MergeVo;
import cn.icatw.gulimall.ware.vo.PurchaseDoneVo;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.icatw.common.utils.PageUtils;
import cn.icatw.gulimall.ware.entity.PurchaseEntity;

import java.util.List;
import java.util.Map;


/**
 * 采购信息
 *
 * @author icatw
 * @email 762188827@qq.com
 * @date 2022-03-08 09:17:30
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * description: 查询未领取的采购单
     *
     * @param params
     * @return cn.icatw.common.utils.PageUtils
     */
    PageUtils queryPageUnreceive(Map<String, Object> params);

    /**
     * description: 合并采购需求
     *
     * @param mergeVo
     * @return void
     */
    void mergePurchase(MergeVo mergeVo);

    /**
     * description: 领取采购单
     *
     * @param ids 采购单id数组
     * @return void
     */
    void received(List<Long> ids);

    /**
     * @param purchaseDoneVo
     * @return void
     * @apiNote 完成采购
     */
    void done(PurchaseDoneVo purchaseDoneVo);
}

